import request from '@/utils/request'

// 查询app用户列表
export function listAppUser (query) {
  return request({
    url: '/appManage/appUser/list',
    method: 'get',
    params: query
  })
}

// 查询app用户详细
export function getAppUser (id) {
  return request({
    url: '/appManage/appUser/' + id,
    method: 'get'
  })
}

// 新增app用户
export function addAppUser (data) {
  return request({
    url: '/appManage/appUser',
    method: 'post',
    data: data
  })
}

// 修改app用户
export function updateAppUser (data) {
  return request({
    url: '/appManage/appUser',
    method: 'put',
    data: data
  })
}

// 删除app用户
export function delAppUser (id) {
  return request({
    url: '/appManage/appUser/' + id,
    method: 'delete'
  })
}

// 启用禁用
export function disableEnable (data) {
  return request({
    url: '/appManage/appUser/disableEnable',
    method: 'post',
    data: data
  })
}